﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
 <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="/WEB-INF/jsp/includeb.jsp"></jsp:include>
		<title>参数设置</title>
	</head>
	<body>
<div id="off-canvas-container" class="off-canvas-container">
		<jsp:include page="/WEB-INF/jsp/BackHeader.jsp"></jsp:include>
	<div id="menu-back">
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<!-- Main Start -->
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<main class="at-padding-large-bottom">
			<article>
				<header class="bg-light at-padding-large-top at-padding-large-bottom at-margin-large-bottom">
					<div class="page-header container">
						<div class="row">
							<div class="span-5 col">
								<h1>参数管理</h1>
							</div>	
							
						 </div >
					</div>
				</header>
				<section class="container">
					<!-- 参数信息展示 -->
					<div class="information" >
					<form action="constparameterindex" class="info-form" >
						<h4 class="info-h4">
							<i class="fa fa-caret-right" aria-hidden="true" ></i>参数信息管理
						</h4>
						
						<div class="input-container">
							<div class="select-condition">
							<span> <label for="searchText">参数名称：</label></span>
							<input id="searchText" type="text" class="input-width" name="strText" maxlength="64" value="${strText}"/>
							<input type="submit" value="搜索" class="btn"/>
							
						<div class="at-float-right">
						<input type="button" class="btn " value="新建"  onclick="location.href='/mmy/tocreateparameter'" />
						<input type="button" class="btn " value="修改"  onclick="updateConstParameter()"/>
						<input type="button" class="btn"  value="删除" onclick="delConstParameter()"/>
						</div>
						</div>
							<table class="info-table">
								<tr>
									<th>
									<input type="checkbox" id="ckall" name="ckall" onclick="ckAll(this);">全选
									</th>
									<th><label>参数名称</label></th>
									<th><label>参数值</label></th>
									<th><label>备注</label></th>
									
								</tr>
								  <!-- 循环显示每个用户的信息 用jstl-->
					  <c:forEach items="${lstConstParameter}" var="lstConstParameter" varStatus="status">
           				 <tr >
            			   <td ><input
                 			   type="checkbox" name="ckone" value="${lstConstParameter.getID() }"
			                    onclick="ckOne(this)" /></td> 
			                  
			                <td ><label>${lstConstParameter.getText() }</label></td>
			                <td ><label>${lstConstParameter.getValue()}</label></td>
			                <td ><label>${lstConstParameter.getMemo()}</label></td>
			            </tr>
      				  </c:forEach>
							</table>
							<select class="input-select-vlign" name="pageSize" onchange="constParameterPageSize(this.options[this.options.selectedIndex].value)">
							<option style="display: none;">${iPageSize}</option>
							<option value="20">20</option>
							<option value="50">50</option>
							<option value="100">100</option>
							<option value="200">200</option>
						</select> 
						<a href="constparameterindex?pageNumber=1&pageSize=${iPageSize}&strText=${strText}">首页</a>
						
						<c:choose>
							<c:when test="${iPageNo == 1}">
						
							</c:when>
							<c:otherwise>
								<a href="constparameterindex?pageNumber=${iPageNo-1}&pageSize=${iPageSize}&strText=${strText}">上一页</a>
							</c:otherwise>
						
						</c:choose>
						<c:choose>
							<c:when test="${iPageNo == iMaxPage}">
						
							</c:when>
							<c:otherwise>
								<a href="constparameterindex?pageNumber=${iPageNo+1}&pageSize=${iPageSize}&strText=${strText}">下一页</a>
							</c:otherwise>
						
						</c:choose>
							<a href="constparameterindex?pageNumber=${iMaxPage}&pageSize=${iPageSize}&strText=${strText}">尾页</a>
						
						</div>	
					</form>
					</div>
					
				
				</section>
				
					
					
			</article>
			
		</main>
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<!-- Main End -->
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
</div>
		<jsp:include page="/WEB-INF/jsp/Footer.jsp"></jsp:include>
	</div>
<jsp:include page="/WEB-INF/jsp/include2.jsp"></jsp:include>
</body>

</html>